# The module Element, includes all the page elements (icons, links, buttons,text_fields, checkboxes, select lists, dialog-boxes)
module Element
    class QuickCreateOpp
        def self.oppname_text_field
            return $ie.text_field(:name,$popform+".Name")
        end
        def self.opptype_select_list
            return $ie.select_list(:name,$popform+".Sales Type")
        end
        def self.sales_stage_select_list
            return $ie.select_list(:name,$popform+".Sales Stage Id")
        end
        def self.market_select_list
            return $ie.select_list(:name,$popform+".ZPick_4")
        end
        def self.submarket_select_list
            return $ie.select_list(:name,$popform+".ZPick_5")
        end
        def self.primorg_select_list
            return $ie.select_list(:name,$popform+".Indexed Pick 2")
        end
        def self.close_date_text_field
            return $ie.text_field(:name,$popform+".Primary Revenue Close Date")
        end
        def self.account_select_icon
            return $ie.image(:class=>"popup",:index=>1)
        end
        def self.currency_select_icon
            return $ie.image(:class=>"popup",:index=>3)
        end
        def self.save_button
            return $ie.button(:id,"SaveID")
        end
        def self.cancel_button
            return $ie.button(:id,"cancel")
        end
    end
    class OppListPage
        def self.list_page_div
            return $ie.div(:id,"OpptyListPageDiv")
        end
        def self.oppname_link(name,n)
            return list_page_div.link(:text=>name,:index=>n)
        end
    end
    class OppDetailPage
        def self.create_quote_link
            return $ie.link(:text,"Click here to create EBS quote")
        end
    end
end